component	
	name		= 'CategoryService'
	singleton	= true 
	extends		= 'model.BaseService'
{
	public function init() {
	 	BeanName = 'CategoryBean';
	}
	
	public function read(ID) {
		var oCategory = super.read(ID);
		oCategory.setNbViews(oCategory.getNbViews()+1);
		oCategory.save();
		return oCategory;
	}
}
